package top.zhillerlab.kmpdemo2.di

import org.koin.compose.viewmodel.dsl.viewModelOf
import org.koin.core.module.Module
import org.koin.core.module.dsl.singleOf
import org.koin.dsl.bind
import org.koin.dsl.module
import top.zhillerlab.kmpdemo2.data.repo.DbRepo
import top.zhillerlab.kmpdemo2.data.repo.DbRepoImpl
import top.zhillerlab.kmpdemo2.data.viewmodel.DbVM

expect val platformModule: Module

val sharedModule = module {
  singleOf(::DbRepoImpl).bind<DbRepo>()
  viewModelOf(::DbVM)
}